{"version":3,"file":"ui.viewer.item.map.js","names":["BX","namespace","UI","Viewer","Item","options","this","controller","title","src","nakedActions","actions","contentType","isLoaded","isLoading","isTransforming","isTransformationError","sourceNode","transformationTimeoutId","viewerGroupBy","isSeparate","transformationTimeout","layout","container","init","prototype","setController","Controller","Error","setPropertiesByNode","node","dataset","alt","viewerSeparateItem","JSON","parse","undefined","bindSourceNode","applyReloadOptions","isSeparateItem","isPullConnected","top","PULL","type","isFunction","isConnected","debugInfo","getDebugInfoArray","connected","registerTransformationHandler","pullTag","getCurrentItem","setTextOnLoading","message","addCustomEvent","command","params","loadData","then","transformationPromise","fulfill","bind","console","log","extendWatch","setTimeout","ajax","promise","url","util","add_url_param","ts","method","dataType","headers","name","value","response","data","transformation","_loadPromise","reject","status","replace","getSrc","item","resetTransformationTimeout","clearTimeout","load","Promise","catch","reason","listContainerModifiers","hashCode","string","h","l","length","i","charCodeAt","generateUniqueId","Math","floor","random","getTitle","getGroupBy","getNakedActions","setActions","getActions","setAutoResolve","render","getContentWidth","handleKeyPress","event","asFirstToShow","afterRender","beforeHide","Image","apply","arguments","resizedSrc","width","height","imageNode","__proto__","constructor","unsetCachedData","tryToExportResizedSrcFromSourceNode","paddingHeight","naturalWidth","offsetHeight","getItemContainer","offsetWidth","scale","realMaxHeight","realMaxWidth","naturalHeight","shouldRunLocalResize","getCachedData","xhr","XMLHttpRequest","onreadystatechange","readyState","DONE","URL","createObjectURL","onload","setCachedData","open","responseType","setRequestHeader","send","onerror","onabort","isExternalLink","document","createDocumentFragment","appendChild","create","props","className","children","href","ibxShowImage","target","text","events","click","e","stopPropagation","window","chrome","removeAttribute","PlainText","content","contentNode","style","fontSize","color","Audio","playerId","svgMask","getClass","ajaxPromise","errors","html","processHTML","STYLE","processScripts","SCRIPT","player","Fileman","Player","isAudio","skin","sources","onInit","vjsPlayer","controlBar","removeChild","hasStarted","createElement","HightlightCode","loadExt","ext","substring","lastIndexOf","tabIndex","paddingTop","background","overflow","codeNode","hljs","getLanguage","textAlign","highlightBlock","Unknown","Video","forceTransformation","videoWidth","handleAfterInit","push","hasOwnProperty","id","handleVideoError","videoHeight","adjustVideo","one","error","reload","adjustVideoWidth","fluid","addClass","maxWidth","maxHeight","isDomNode","contentWidthPromise","state","innerHeight","resultRelativeSize","videoRelativeSize","reduceRatio","showLoading","opacity","mute","play"],"sources":["ui.viewer.item.js"],"mappings":"CAAC,WAEA,aAEAA,GAAGC,UAAU,gBAEbD,GAAGE,GAAGC,OAAOC,KAAO,SAASC,GAE5BA,EAAUA,GAAW,CAAC,EAKtBC,KAAKC,WAAa,KAClBD,KAAKE,MAAQH,EAAQG,MACrBF,KAAKG,IAAMJ,EAAQI,IACnBH,KAAKI,aAAeL,EAAQK,aAC5BJ,KAAKK,QAAUN,EAAQM,QACvBL,KAAKM,YAAcP,EAAQO,YAC3BN,KAAKO,SAAW,MAChBP,KAAKQ,UAAY,MACjBR,KAAKS,eAAiB,MACtBT,KAAKU,sBAAwB,MAC7BV,KAAKW,WAAa,KAClBX,KAAKY,wBAA0B,KAC/BZ,KAAKa,cAAgB,KACrBb,KAAKc,WAAa,MAClBd,KAAKe,sBAAwBhB,EAAQgB,uBAAyB,KAC9Df,KAAKgB,OAAS,CACbC,UAAW,MAGZjB,KAAKD,QAAUA,EAEfC,KAAKkB,MACN,EAEAxB,GAAGE,GAAGC,OAAOC,KAAKqB,UAClB,CACCC,cAAe,SAAUnB,GAExB,KAAMA,aAAsBP,GAAGE,GAAGC,OAAOwB,YACzC,CACC,MAAM,IAAIC,MAAM,iFACjB,CAEAtB,KAAKC,WAAaA,CACnB,EAKAsB,oBAAqB,SAAUC,GAE9BxB,KAAKE,MAAQsB,EAAKC,QAAQvB,OAASsB,EAAKtB,OAASsB,EAAKE,IACtD1B,KAAKG,IAAMqB,EAAKC,QAAQtB,IACxBH,KAAKa,cAAgBW,EAAKC,QAAQZ,cAClCb,KAAKc,WAAaU,EAAKC,QAAQE,oBAAsB,MACrD3B,KAAKI,aAAeoB,EAAKC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